package com.wangmeng.book.server;

import java.io.Serializable;
import java.util.Map;

/**
 * User: 王猛
 * Date: 13-9-24
 */
public class CommandResult implements Serializable {
    public static final int CODE_SUCCESS = 0;
    public static final int CODE_COMMON_ERROR = 1;
    //结果代码
    private int code;
    //错误消息
    private String message;
    //结果数据
    private Map<String, Object> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }
}
